<?php

/**
 *  商品
*/

namespace app\api\controller;
use app\facade\Basic;
use think\Request;
use app\api\service\Login as ServiceLogin;

class Product extends BaseController
{
    /**
     *  筛选器分组
     */
    public function list(Request $request)
    {
        $param['password'] = $request->param('password',null);
        $param['ip'] = $request->ip();

        /* 验证 */
        $this->validateData($param,'Login.login');

        /* 登录操作 */
        $ServiceLogin = new ServiceLogin();
        $result = $ServiceLogin->login($param);
        return Basic::json($result);
    }

}